Skip to content

Fix buffer overflow in test_cjose_jwe_multiple_recipients().#104

Open
mpsun wants to merge 1 commit intocisco:masterfrom
mpsun:hotfix/buffer-overflow
Open

Fix buffer overflow in test_cjose_jwe_multiple_recipients().#104
mpsun wants to merge 1 commit intocisco:masterfrom
mpsun:hotfix/buffer-overflow

Conversation

@mpsun
Copy link

@mpsun mpsun commented Jul 23, 2019

The function allocates two cjose_jwe_recipient_t on the stack and then writes at index 2, which is out of bounds. The NULL pointer also seems unnecessary because cjose_jwe_encrypt_multi() takes a count as its argument.

The function allocates two cjose_jwe_recipient_t on the stack and then writes at index 2, which is out of bounds. The NULL pointer also seems unnecessary because cjose_jwe_encrypt_multi() takes a count as its argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant